package com.zb.service.sys;

import com.zb.entity.base.JsonCommon;
import com.zb.entity.base.JsonForList;
import com.zb.entity.base.OmsCommonParam;
import com.zb.entity.system.OmsUrlList;
import com.zb.entity.system.OmsUrlTreeVO;

public interface UrlListService 
{
	JsonCommon<?> add(OmsUrlList url);
	JsonCommon<?> update(OmsUrlList url);
	JsonCommon<?> delete(String urlId);
	JsonForList<?> findPageOrAll(OmsCommonParam param,OmsUrlList url);
	JsonCommon<?> findById(OmsUrlList url);
	JsonForList<?> findUrlListByRoleId(String roleId,String levelType,boolean isExists);
	JsonForList<?> findUrlListByRoleId(String roleId);

	OmsUrlTreeVO getAllUrlTree(String roleId);

	OmsUrlTreeVO getAllUrlTree();

	void assignUrlToRole(OmsUrlTreeVO rootVO, String roleId, String operId);

	void updateUrls(OmsUrlTreeVO originTreeVO, OmsUrlTreeVO updatedTreeVO);
}
